package top.viya.hello2.xxljob.config;

import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class XxlJobConfig {

    @Bean
    @ConfigurationProperties(prefix = "xxl-job")
    public XxlJobSpringExecutor xxlJobExecutor() {
        return new XxlJobSpringExecutor();
    }


}